CC = g++
CFLAGS = -c -Wall
LDFLAGS=-Wl,--no-as-needed -lrt
SOURCES = $(wildcard src/*.cpp)
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=arqsink

all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@

clean:
	rm -f $(EXECUTABLE) src/*.o

fullclean:
	rm -f $(EXECUTABLE) src/*.o src/*~ *~
